#include "typesDefinition.h"

namespace common{
/**
 * Temporary function
 */
void skPmatrix(ublasMatrix* m){
	std::cout << std::endl << "Matrix "<< m->size1() << "x" << m->size2() << std::endl;
    for(unsigned i=0;i<m->size1();i++){
    	for(unsigned j=0;j<m->size2();j++){
    	    std::cout.width(6);
    	    std::cout.precision(2);
    		std::cout << (*m)(i,j);
    	}
    	std::cout << std::endl;
    }
}
void skPmatrix(ublasMatrixRange* m){
	std::cout << std::endl << "Matrix Range "<< m->size1() << "x" << m->size2() << std::endl;
    for(unsigned i=0;i<m->size1();i++){
    	for(unsigned j=0;j<m->size2();j++){
    	    std::cout.width(6);
    	    std::cout.precision(2);
    		std::cout << (*m)(i,j);
    	}
    	std::cout << std::endl;
    }
}
void skPvector(ublasVector* v){
	std::cout << *v << std::endl;

/*	std::cout << std::endl << "Vector "<< v->size() << std::endl;
    for(unsigned i=0;i<v->size();i++){
    	    std::cout.width(7);
    	    std::cout.precision(2);
    		std::cout << (*v)(i);
        	std::cout << std::endl;
    }*/
}
void skPvector(ublasVectorRange* v){
	std::cout << *v << std::endl;

/*	std::cout << std::endl << "Vector "<< v->size() << std::endl;
    for(unsigned i=0;i<v->size();i++){
    	    std::cout.width(7);
    	    std::cout.precision(2);
    		std::cout << (*v)(i);
        	std::cout << std::endl;
    }*/
}
}

